package mobilizator.app.data;

public class ClothingAttribute {
	
	public static final int ATTRIB_TYPE_STRING = 1;
	public static final int ATTRIB_TYPE_BOOLEAN = 2;
	public static final int ATTRIB_TYPE_LONG = 3;

	private long id;
	private String name;
	private Object value;
	private int type;
	private boolean isValueSet;

	public ClothingAttribute(String name) {
		this.name = name;
		value = null;
		isValueSet = false;
	}
	public ClothingAttribute(String name, Object value) {
		this.name = name;
		this.value = value;
		isValueSet = true;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Object getValue() {
		return value;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public void setValue(Object value) {
		isValueSet = true;
		this.value = value;
	}
	public boolean isValueSet() {
		return isValueSet;
	}
}
